﻿namespace PowerSong.Indexer
    {
    using System.Collections.Generic;

    internal class WordOccurrences
        {

        internal int Occurrences;

        // Key = Document index, Value = Occurrances in document
        internal Dictionary<int, int> Documents = new Dictionary<int, int>();

        internal WordOccurrences(int occurrences, params int[] documents)
            {
            this.Occurrences = occurrences;
            foreach (int document in documents)
                {
                this.Documents.Add(document, occurrences);
                }
            }

        }

    }
